package com.lihui.计算糖果;

import java.util.Scanner;

/**
 * 计算糖果
 *
 * @author wileda
 * @date 2022/11/23  20:42
 */
    public class Main {
        public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            while (sc.hasNext()){
                int num1 = sc.nextInt();//A - B
                int num2 = sc.nextInt();//B - C
                int num3 = sc.nextInt();//A + B
                int num4 = sc.nextInt();//A + C
                int A = (num1 + num3) / 2;
                int C = (num4-num2)/2;
                int B1 = (num2 + num4)/2;
                int B2 = (num3-num1)/2;
                if(B1 != B2) {
                    System.out.print("No");
                }else{
                    System.out.print(A+" "+B2+" "+C);
              }
          }
        }
}

